
#ifndef SessionEditor_H
#define SessionEditor_H

#include <wx/richtext/richtextctrl.h>

#include "tux.h"

class SessionPanel;


#if defined(__WXMSW__)
	#define SessionEditorCtrl  wxTextCtrl
	#define _USING_TEXTCTRL_
#else 
	#define SessionEditorCtrl  wxRichTextCtrl
#endif

class SessionEditor : public SessionEditorCtrl
{
friend class SessionPanel;

private:
	wxTextAttr messageStyle;
	SessionPanel* sessionPanel;

public:
    SessionEditor(wxWindow* parent, SessionPanel* sp);
    ~SessionEditor();

    void SetMessageStyle(wxTextAttr& attr);

	void SendMessage();

private:
	void OnContextMenu(wxContextMenuEvent& event);
	void OnChangeFont(wxCommandEvent& event);
	void OnSendFile(wxCommandEvent& event);
    void OnKeyDown(wxKeyEvent& event);

DECLARE_EVENT_TABLE()
};

#endif
